package com.umpay.dto.merAccess.req.payment;


import com.umpay.annotation.Pattern;
import com.umpay.dto.merAccess.req.CommonReq;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/* ******************  类说明  *********************
 * class       :  AgreementPayReq
 * @author     :  sxl
 * @date       :  2018年8月27日 上午10:33:55
 * @version    :  1.0  
 * description :  商业委托协议支付支付请求类
 * @see        :                        
 * ************************************************/   
public class AgreementPayReq extends CommonReq{
	@NotEmpty(message = "交易号不能为空")		
	@Pattern(message = "交易号格式不正确")
	private String trade_no;	//联动交易号
	@NotEmpty(message = "支付交易流水号不能为空")		
	@Pattern(message = "支付交易流水号格式不正确")
	private String mer_trace;	//支付交易流水
	@NotEmpty(message = "金额不能为空")		
	@Pattern(message = "金额格式不正确")
	private String amount;	//金额
	@NotEmpty(message = "子商户编号不能为空")
	@Pattern(message="子商户编号格式不正确")
	private String mer_cust_id;
	@NotNull(message = "支付协议号不能为空")
	@Pattern(message = "支付协议号格式不正确")
	private String p_agreement_id;//	支付协议号	变长20	Y
	/**
	 * 服务器异步通知页面路径
	 */
	@Pattern(message = "服务器异步通知地址格式不正确")
	private String notify_url;
	public String getTrade_no() {
		return trade_no;
	}
	public void setTrade_no(String trade_no) {
		this.trade_no = trade_no;
	}
	public String getMer_trace() {
		return mer_trace;
	}
	public void setMer_trace(String mer_trace) {
		this.mer_trace = mer_trace;
	}
	public String getAmount() {
		return amount;
	}
	public void setAmount(String amount) {
		this.amount = amount;
	}
	public String getMer_cust_id() {
		return mer_cust_id;
	}
	public void setMer_cust_id(String mer_cust_id) {
		this.mer_cust_id = mer_cust_id;
	}
	public String getP_agreement_id() {
		return p_agreement_id;
	}
	public void setP_agreement_id(String p_agreement_id) {
		this.p_agreement_id = p_agreement_id;
	}
	public String getNotify_url() {
		return notify_url;
	}
	public void setNotify_url(String notify_url) {
		this.notify_url = notify_url;
	}
	@Override
	public String toString() {
		return super.toString() + "AgreementPayReq [trade_no=" + trade_no + ", mer_trace=" + mer_trace + ", amount=" + amount
				+ ", mer_cust_id=" + mer_cust_id + ", p_agreement_id=" + p_agreement_id + ", notify_url=" + notify_url
				+ "]";
	}
	
	
}
